﻿using AuthCenter.Domain;
using AuthCenter_API.Write.Applications.Commands.Audit;
using AuthCenter_API.Write.Applications.Commands.RBAC;
using AuthCenter_API.Write.Applications.Commands.User;
using AutoMapper;

namespace AuthCenter_API.Write
{
    public class MapperProfile : Profile
    {
        public MapperProfile()
        {
            CreateMap<AddUserCommand,UserModel>();
            CreateMap<UpdUserCommand,UserModel>();
            CreateMap<DelUserCommand,UserModel>();

            CreateMap<RoleAddCommand, RoleModel>();
            CreateMap<RoleUpdCommand, RoleModel>();
            CreateMap<RoleDelCommand, RoleModel>();
            CreateMap<MenuAddCommand, MenuModel>();
            CreateMap<MenuDelCommand, MenuModel>();
            CreateMap<MenuUpdCommnad, MenuModel>();

            CreateMap<AuditDelCommand, ShenPiModel>();
            CreateMap<AuditAddCommand, ShenPiModel>();
            CreateMap<AuditUpdCommand, ShenPiModel>();
        }
    }
}
